<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmChangeProfile">
        <f:view>
            <p:dialog header="Change Profile"
                      id="dlgChangeProfile"
                      widgetVar="wgChangeProfile"
                      draggable="true"
                      showEffect="clip"
                      hideEffect="clip"
                      closable="true" >
                <p:panelGrid id="pdChangeProfile" columns="2">
                    <p:outputLabel value="Address:" for="address" />
                    <p:inputTextarea id="address" value="#{system.user.address}" title="Address" />
                    <p:outputLabel value="City:" for="city" />
                    <p:inputText id="city" value="#{system.user.city}" title="City" />
                    <p:outputLabel value="Region:" for="region" />
                    <p:inputText id="region" value="#{system.user.region}" title="Region" />
                    <p:outputLabel value="PostalCode:" for="postalCode" />
                    <p:inputText id="postalCode" value="#{system.user.postalCode}" title="PostalCode" />
                    <p:outputLabel value="MobilePhone:" for="mobilePhone" />
                    <p:inputText id="mobilePhone" value="#{system.user.mobilePhone}" title="MobilePhone" />
                    <p:outputLabel value="Email:" for="email" />
                    <p:inputText id="email" value="#{system.user.email}" title="Email" />
                </p:panelGrid>
                <f:facet name="footer">
                    <p:commandButton id="btnMyprofile"
                                     value="Save"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     actionListener="#{userBean.Edit}"
                                     update=":frmMyprofile:pnMyprofile,:growl"
                                     oncomplete="UserBeansRequest(xhr, status, args)"
                                     />
                    <p:commandButton value="Close"
                                     onclick="wgChangeProfile.hide();"
                                     icon="ui-icon-check"
                                     style="margin:0"/>
                </f:facet>
            </p:dialog>
        </f:view>
    </h:form>
</html>
